package com.zmp.kotlinnote.entry

import android.graphics.Canvas
import com.zmp.kotlinnote.exchange.log
import com.zmp.kotlinnote.exchange.work
import kotlin.properties.Delegates


/**
 *@author zmp
 *Created by zmp on 2018/12/19
 */
open  class DPerson(var name: String = "dPerson", var age: Int = 0, var sex: String = "man") {
    open fun jump() {
       "DPerson:jump".log()
    }

    private fun creep() {
        "DPerson:creep".log()
    }

    companion object {

    }

    val a:String by lazy { //
        "aaa"
    }
}

class DMan(name: String = "dMan", age: Int = 0) : DPerson(name, age, "man") {
//    var mustache: String? = null
//        get() = field
//        set(value) {
//            field = value
//    }

    override fun jump() {
        println("DMan:jump")
        kotlin.run {  }
    }
}

